import { FormTemplate } from '../../Utils/FormTemp'

const Added = ({ data, ModalEvent, Off }) => {
    ModalEvent.useSubscription(val => { if (val.type === 'Added') Off() })
    return (
        <div className="Added">
            <FormTemplate columns={data} ModalEvent={ModalEvent} />
        </div>
    )
}

export default Added